from pydantic import BaseModel, Extra

from .utils import *


class Config(BaseModel, extra=Extra.ignore):
    """Plugin Config Here"""
    DEBUG: bool = True
    """调试模式开关"""
    ADMIN: list = ['2104898527']
    """插件管理员"""
    PRIORITY: int = 10
    """响应优先级"""
    GROUPS: list = [
        '418604724',
        '104254268',
    ]
    """生效群列表"""
    Allow_words: dict = {
        # 火战177重置交流群
        '418604724': ['bilibili', '哔', '交流', '火战', '玩', '游', '包', '火'],
        '104254268': ['1']
    }
    """加群审核"""
    Black_list: list = read_2_list('./black_list.txt')
    """机器人黑名单"""
